<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>parent查找</title>
    <script src="js/jquery-1.11.3.js"></script>
</head>
<body>
        <ul>
            <div>
                <p>aaa</p>
            </div>
        </ul>

        <ul class="hh">
            <p>bbb</p>
        </ul>
        <nav>
            <p>cccc</p>
        </nav>
        <h2>aaa</h2>
        <script>
            $(function () {
                var s = $('p').parent().css('color','red');
                console.log(s);
            })
        </script>
</body>
</html>